import $ajax from '@/utils/ajax'
import $config from '@/config'

export default {
  index (options, url) {
    return $ajax.get(url,
      options
    )
  },
  getData (url, options) {
    return $ajax.get(url,
      options
    )
  },
  postData (options, url) {
    return $ajax.post(url,
      options
    )
  },

	getMsg (options) {
		return $ajax.post('/app/query/queryDataByDimension', {
			...{
				pattern: '全量小区',
				scene_class: '全量小区',
				site_type: '全量小区',
				adm_pro: '全量小区'
			},
			...options
		})
	},
	querySceneNames (options) {
		return $ajax.post('/app/query/querySceneNames')
	},
	getEnsureDailyList (options) {
		return $ajax.get(`/appSim/sim/getEnsureDailyList?type=${options}`)
	},
	getEnsureDailyInfo (path) {
		location.href = `${$config.ajax.baseURL}/appSim/sim/getEnsureDailyInfo?filePath=${path}`
	}
}
